 
import { createDrawChannel, getAiConsumerPoint, getDrawChannels } from "@/api";

export type IEditorInfo = {
    content:string
};
 

export interface IEditorStore {
    editorHandle:any
    content:string
    isProcess:boolean
    setContent:(str:string)=>void
    setEditorHandle:(handle:any)=>void
    setProcessStatus:(handle:boolean)=>void
}

const EditorStore = (): IEditorStore => {
    return {
        editorHandle:null,
        content: '',  
        isProcess:false,
        setContent(str:string){
            this.content=str+'/n'
        },
        setEditorHandle(handle:any){
            this.editorHandle=handle
        },
        setProcessStatus(status:boolean){
            this.isProcess=status
        }
    };
};

export default EditorStore;
